#ifndef _VIAEDITOR_GOTOLINEWIDGET_H_
#define _VIAEDITOR_GOTOLINEWIDGET_H_

#include <QtGui/QWidget>

class QSpinBox;
class QToolButton;

class GoToLineWidget : public QWidget
{
	Q_OBJECT
	signals:
		void goToLine(int line);
		void changeMaximum();
	public slots:
		void showWidget();
	public:
		GoToLineWidget(QWidget *parent = 0);
		~GoToLineWidget();
		
		void setMaximum(int maxLine);
	private slots:
		void go();
	private:
		QSpinBox *spinBox;
		QToolButton *goButton;
		QToolButton *cancelButton;
	protected:
		void focusInEvent(QFocusEvent *focusEvent);
};

#endif
